cmake_minimum_required(VERSION 3.23)
project(gtkTest C)

set(CMAKE_C_STANDARD 99)

add_executable(01_HelloWorld day1/01_HelloWorld.c)
add_executable(01_first_window day1/first_window.c)
add_executable(02_button day2/button.c)
add_executable(02_test day2/test.c)
add_executable(03_table day3/table.c)
add_executable(03_fixed day3/fixed.c)
add_executable(03_back_ground day3/back_ground.c)
add_executable(loginPage work/login.c)



FIND_PACKAGE(PkgConfig REQUIRED)
PKG_CHECK_MODULES(GTK3 REQUIRED gtk+-3.0)
INCLUDE_DIRECTORIES(${GTK3_INCLUDE_DIRS})
LINK_DIRECTORIES(${GTK3_LIBRARY_DIRS})
TARGET_LINK_LIBRARIES(01_HelloWorld ${GTK3_LIBRARIES})
TARGET_LINK_LIBRARIES(01_first_window ${GTK3_LIBRARIES})
TARGET_LINK_LIBRARIES(02_button ${GTK3_LIBRARIES})
TARGET_LINK_LIBRARIES(02_test ${GTK3_LIBRARIES})
TARGET_LINK_LIBRARIES(03_table ${GTK3_LIBRARIES})
TARGET_LINK_LIBRARIES(03_fixed ${GTK3_LIBRARIES})
TARGET_LINK_LIBRARIES(03_back_ground ${GTK3_LIBRARIES})
TARGET_LINK_LIBRARIES(loginPage ${GTK3_LIBRARIES})
